package com.lovo.service;

import com.lovo.model.UserDO;
import com.lovo.model.dto.UserDTO;
import com.lovo.result.GlobalHandleException;

import java.util.List;

public interface UserService {
    UserDO findByID(Integer userId);
    List findAll();
    void save(UserDO userDO);
    void update(UserDO userDO) throws InterruptedException;
    void delete(UserDO userDO);
    UserDTO validate(String phone, String pwd) throws GlobalHandleException;
    List findCondition(String phone);
    void deleteByPhone(String phone);
}
